package com.crm.model.entity.exchange;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class IndustryExchangeSiteExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IndustryExchangeSiteExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIndustryExchangeSiteIdIsNull() {
            addCriterion("industry_exchange_site_id is null");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdIsNotNull() {
            addCriterion("industry_exchange_site_id is not null");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdEqualTo(String value) {
            addCriterion("industry_exchange_site_id =", value, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdNotEqualTo(String value) {
            addCriterion("industry_exchange_site_id <>", value, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdGreaterThan(String value) {
            addCriterion("industry_exchange_site_id >", value, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdGreaterThanOrEqualTo(String value) {
            addCriterion("industry_exchange_site_id >=", value, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdLessThan(String value) {
            addCriterion("industry_exchange_site_id <", value, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdLessThanOrEqualTo(String value) {
            addCriterion("industry_exchange_site_id <=", value, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdLike(String value) {
            addCriterion("industry_exchange_site_id like", value, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdNotLike(String value) {
            addCriterion("industry_exchange_site_id not like", value, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdIn(List<String> values) {
            addCriterion("industry_exchange_site_id in", values, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdNotIn(List<String> values) {
            addCriterion("industry_exchange_site_id not in", values, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdBetween(String value1, String value2) {
            addCriterion("industry_exchange_site_id between", value1, value2, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andIndustryExchangeSiteIdNotBetween(String value1, String value2) {
            addCriterion("industry_exchange_site_id not between", value1, value2, "industryExchangeSiteId");
            return (Criteria) this;
        }

        public Criteria andRuleNumberIsNull() {
            addCriterion("rule_number is null");
            return (Criteria) this;
        }

        public Criteria andRuleNumberIsNotNull() {
            addCriterion("rule_number is not null");
            return (Criteria) this;
        }

        public Criteria andRuleNumberEqualTo(String value) {
            addCriterion("rule_number =", value, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberNotEqualTo(String value) {
            addCriterion("rule_number <>", value, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberGreaterThan(String value) {
            addCriterion("rule_number >", value, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberGreaterThanOrEqualTo(String value) {
            addCriterion("rule_number >=", value, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberLessThan(String value) {
            addCriterion("rule_number <", value, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberLessThanOrEqualTo(String value) {
            addCriterion("rule_number <=", value, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberLike(String value) {
            addCriterion("rule_number like", value, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberNotLike(String value) {
            addCriterion("rule_number not like", value, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberIn(List<String> values) {
            addCriterion("rule_number in", values, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberNotIn(List<String> values) {
            addCriterion("rule_number not in", values, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberBetween(String value1, String value2) {
            addCriterion("rule_number between", value1, value2, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andRuleNumberNotBetween(String value1, String value2) {
            addCriterion("rule_number not between", value1, value2, "ruleNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberIsNull() {
            addCriterion("industry_number is null");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberIsNotNull() {
            addCriterion("industry_number is not null");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberEqualTo(String value) {
            addCriterion("industry_number =", value, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberNotEqualTo(String value) {
            addCriterion("industry_number <>", value, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberGreaterThan(String value) {
            addCriterion("industry_number >", value, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberGreaterThanOrEqualTo(String value) {
            addCriterion("industry_number >=", value, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberLessThan(String value) {
            addCriterion("industry_number <", value, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberLessThanOrEqualTo(String value) {
            addCriterion("industry_number <=", value, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberLike(String value) {
            addCriterion("industry_number like", value, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberNotLike(String value) {
            addCriterion("industry_number not like", value, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberIn(List<String> values) {
            addCriterion("industry_number in", values, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberNotIn(List<String> values) {
            addCriterion("industry_number not in", values, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberBetween(String value1, String value2) {
            addCriterion("industry_number between", value1, value2, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andIndustryNumberNotBetween(String value1, String value2) {
            addCriterion("industry_number not between", value1, value2, "industryNumber");
            return (Criteria) this;
        }

        public Criteria andSiteDaysIsNull() {
            addCriterion("site_days is null");
            return (Criteria) this;
        }

        public Criteria andSiteDaysIsNotNull() {
            addCriterion("site_days is not null");
            return (Criteria) this;
        }

        public Criteria andSiteDaysEqualTo(Integer value) {
            addCriterion("site_days =", value, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysNotEqualTo(Integer value) {
            addCriterion("site_days <>", value, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysGreaterThan(Integer value) {
            addCriterion("site_days >", value, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("site_days >=", value, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysLessThan(Integer value) {
            addCriterion("site_days <", value, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysLessThanOrEqualTo(Integer value) {
            addCriterion("site_days <=", value, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysIn(List<Integer> values) {
            addCriterion("site_days in", values, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysNotIn(List<Integer> values) {
            addCriterion("site_days not in", values, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysBetween(Integer value1, Integer value2) {
            addCriterion("site_days between", value1, value2, "siteDays");
            return (Criteria) this;
        }

        public Criteria andSiteDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("site_days not between", value1, value2, "siteDays");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andEnableDisableIsNull() {
            addCriterion("enable_disable is null");
            return (Criteria) this;
        }

        public Criteria andEnableDisableIsNotNull() {
            addCriterion("enable_disable is not null");
            return (Criteria) this;
        }

        public Criteria andEnableDisableEqualTo(Integer value) {
            addCriterion("enable_disable =", value, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableNotEqualTo(Integer value) {
            addCriterion("enable_disable <>", value, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableGreaterThan(Integer value) {
            addCriterion("enable_disable >", value, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableGreaterThanOrEqualTo(Integer value) {
            addCriterion("enable_disable >=", value, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableLessThan(Integer value) {
            addCriterion("enable_disable <", value, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableLessThanOrEqualTo(Integer value) {
            addCriterion("enable_disable <=", value, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableIn(List<Integer> values) {
            addCriterion("enable_disable in", values, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableNotIn(List<Integer> values) {
            addCriterion("enable_disable not in", values, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableBetween(Integer value1, Integer value2) {
            addCriterion("enable_disable between", value1, value2, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andEnableDisableNotBetween(Integer value1, Integer value2) {
            addCriterion("enable_disable not between", value1, value2, "enableDisable");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andRuleTitleIsNull() {
            addCriterion("rule_title is null");
            return (Criteria) this;
        }

        public Criteria andRuleTitleIsNotNull() {
            addCriterion("rule_title is not null");
            return (Criteria) this;
        }

        public Criteria andRuleTitleEqualTo(String value) {
            addCriterion("rule_title =", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleNotEqualTo(String value) {
            addCriterion("rule_title <>", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleGreaterThan(String value) {
            addCriterion("rule_title >", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleGreaterThanOrEqualTo(String value) {
            addCriterion("rule_title >=", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleLessThan(String value) {
            addCriterion("rule_title <", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleLessThanOrEqualTo(String value) {
            addCriterion("rule_title <=", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleLike(String value) {
            addCriterion("rule_title like", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleNotLike(String value) {
            addCriterion("rule_title not like", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleIn(List<String> values) {
            addCriterion("rule_title in", values, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleNotIn(List<String> values) {
            addCriterion("rule_title not in", values, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleBetween(String value1, String value2) {
            addCriterion("rule_title between", value1, value2, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleNotBetween(String value1, String value2) {
            addCriterion("rule_title not between", value1, value2, "ruleTitle");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}